const CracoLessPlugin = require('craco-less');
// const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
module.exports = {
    // webpack: {
    //     plugins: [
    //         //打包分析
    //         new BundleAnalyzerPlugin(),
    //     ],
    // },
    plugins: [
        {
            plugin: CracoLessPlugin,
            options: {
                lessLoaderOptions: {
                    lessOptions: {
                        modifyVars: { '@primary-color': '#1DA57A' },
                        javascriptEnabled: true,
                    },
                },
            },
        },
    ],
    // publicPath: './',
    // base: './Back',
    output: {
        publicPath: './'
    }
};